package com.westa.smallshop.goodsadd;

import com.westa.smallshop.common.BasePresenter;
import com.westa.smallshop.common.BaseView;
import com.westa.smallshop.data.GoodsItem;

import java.util.List;


interface GoodsAddContract {
    interface View extends BaseView<Presenter> {

        void showAddGoodsDialogProgress();

        void showAddGoodsSuccessful();

        void showUploadImageFailed();

        void showAddGoodsFailed();

        void showGoodsNameEmpty();

        void showGoodsPriceEmpty();

        void showGoodsImgEmpty();

        void showGoodsDescriptionNull();

        void failedOperation(String msg);

        void showExitHintDialog();

    }

    interface Presenter extends BasePresenter {

        void doAddGoodsItem(GoodsItem goodsItem, List<String> images);

        void cancelAddGoodsImage();

        void doSaveGoods(final List<String> images, final GoodsItem goodsItem);

    }
}
